
<{include file="app/header.tpl"}>

    <header class="focus loadimg">
        <ul class="focusUl fix">
            <{foreach from=$banners item="banner"}>
            <li>
                <a href="<{$banner.url}>"><img src="<{$banner.iconUrl}>" alt=""></a>
            </li>
            <{/foreach}>
        </ul>
        <ol class="focusOl">
            <{foreach from=$banners item="banner" name="ban"}>
            <li class="<{if $smarty.foreach.ban.index == 0}>active<{/if}>"></li>
            <{/foreach}>
        </ol>
    </header>
    <nav class="nav">
        <ul class="nav-ul fix">
            <li class="nav-li">
                <a class="a" href="/davshop" title="">
                    <img class="img" src="/resource/app/imgs/nav_v.png" height="82" width="81" alt="">
                    <p class="text">大V店</p>
                </a>
            </li>
            <li class="nav-li">
                <a class="a" href="/topic" title="">
                    <img class="img" src="/resource/app/imgs/nav_zhuan.png" alt="">
                    <p class="text">专题</p>
                </a>
            </li>
            <li class="nav-li">
                <a class="a" href="/goods/pindan" title="">
                    <img class="img" src="/resource/app/imgs/nav_ping.png" alt="">
                    <p class="text">拼单</p>
                </a>
            </li>
        </ul>
    </nav>
    <{if $tuanItems|@count > 0}>
    <ul class="goods-pingdan-list">
        <{foreach from=$tuanItems item=goods}>
        <li class="li">
            <img class="img" src="<{$goods.thumb}>"  alt="">
            <p class="title"><{$goods.name}></p>
            <p class="goods-info"><{$goods.shortDesc}></p>
            <div class="bottom fix">
                <span class="left">
                    <p class="one"><{$goods.tuanPersons}>人团 <span class="money"> <{$goods.tuanPrice}></span></p>
                <p class="two">市场价： <{$goods.price}></p>
                </span>
                <a href="<{$goods.tuanUrl}>"><span class="right">去开团<em class="right-icon"></em></span></a>
            </div>
        </li>
        <{/foreach}>
    </ul>
    <{/if}>
    <p class="sort-public-title">专题</p>
    <ul class="topic-list loadimg">
        <{foreach from=$topicItems item="topic"}>
        <li class="li">
            <a href="/topic/detail/<{$topic.nid}>" class="a" title="">
                <img src="<{$topic.image}>" class="img" alt="">
                <p class="bottom"><{$topic.name}></p>
                <p class="top" onclick="user_like('topic', <{$topic.nid}>, this);return false;"><em class="<{if $topic.isLiked}>like-icon<{else}>nolike-icon<{/if}>"></em><span class="iCounts"><{$topic.countsLike}></span></p>
            </a>
        </li>
        <{/foreach}>
    </ul>
    <p class="sort-public-title">精选</p>
    <ul class="goods-list fix loadimg">
        <{foreach from=$goodsItems item="goods"}>
        <li class="li">
            <a href="/goods/detail/<{$goods.nid}>" class="a" title="">
                <img class="img" src="<{$goods.thumb}>" alt="">
                <p class="title"><{$goods.name}></p>
                <p class="bottom fix">
                    <span class="money"><{$goods.price}></span>
                    <span class="like-number" onclick="user_like('goods', <{$goods.nid}>, this); return false;">
                        <em class="<{if $goods.isLiked}>like-icon<{else}>nolike-icon<{/if}>"></em>
                        <span class="iCounts"><{$goods.countsLike}></span>
                    </span>
                </p>
            </a>
        </li>
        <{/foreach}>
    </ul>

<script>
// 焦点图轮播
lw.focus(document.getElementsByClassName('focus')[0], 6000);

</script>

<{include file="app/footer.tpl"}>

